
<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="noindex">
    <title>Adam·Eva的收款码</title>
    <!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-154489673-2"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-154489673-2');
</script>

        <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?c60a4297855ab17fe001adf82f124bd9";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
    <meta name="referrer" content="no-referrer" />
    
    <ul id="aff">
	<li><div align="center"></div></li>
    </ul>
    <script>
    var setting = {
        // 在以下双引号中修改自己的QQ收款链接
        qqUrl: "https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&f=wallet&a=1&ac=CAEQk7-O1QQY2bew6QU%3D_xxx_sign&u=1252237203&n=Adam%C2%B7Eva",
        
        // 在以下双引号中修改自己的微信收款链接
        wechatUrl: "wxp://f2f0unjcrIib2NnINRmoBh-HnwMwBp__nL_d",
        
        // 在以下双引号中修改自己的支付宝收款链接
        aliUrl: "https://qr.alipay.com/fkx09871zjcvzglc3bm1u71",
        
        // 用于生成二维码的API，可修改为自己已有的API。
        qrcodeApi: "https://api.qrserver.com/v1/create-qr-code/?margin=0&format=png&data="    

    }
    </script>
    
    <style>
    * {
        margin: 0; padding: 0;
        font-family: Microsoft yahei;
    }
    body {
        background-color: #fff;
    }
    .code-item {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding-bottom: 1px;
        display: none;
        background-color: #5c92ef;
    }
    .code-title {
        height: 100px;
        background-color: #f2f2f2;
        background-position: center;
        background-repeat: no-repeat;
        background-size: 50%;
    }
    .code-area {
        text-align: center;
    }
    .code-area>img {
        margin: 80px 0;
        width: 60%;
        min-width: 100px;
    }
    .code-footer {
        height: 80px;
        text-align: center;
        background-color: #fff;
        color: #666;
        line-height: 80px;
        font-size: 20px;
        margin: -2px 2px 2px 2px;
    }
        
    #code-all>.code-title {
        background-image: url("/image/111.jpg");
    }
    
    #code-qq {
        background-color: #54b4ef;
    }
    #code-qq>.code-title {
        background-image: url("/image/100.jpg");
    }
    
    #code-wechat {
        background-color: #54bc6e;
    }
    #code-wechat>.code-title { 
        background-image: url("/image/010.jpg");
        
    }
    </style>    

    
</head>
<body>
    <!-- 三合一收款码显示区（汉字内容可修改） -->
    <div class="code-item" id="code-all">
        <div class="code-title"></div>
        <div class="code-area">
            <img id="page-url" src="">
        </div>
        <div class="code-footer">扫描二维码向Adam·Eva付款</div>
    </div>
    
    <!-- QQ钱包二维码展示区域 -->
    <div class="code-item" id="code-qq">
        <div class="code-title"></div>
        <div class="code-area">
            <img id="qq-url" src="">
        </div>
        <div class="code-footer">长按二维码向Adam·Eva付款</div>
    </div>
    
    <!-- 微信二维码展示区域 -->
    <div class="code-item" id="code-wechat">
        <div class="code-title"></div>
        <div class="code-area">
            <img id="wechat-url" src="">
        </div>
        <div class="code-footer">长按二维码向Adam·Eva付款</div>
    </div>
    
    <script>
    if(navigator.userAgent.match(/Alipay/i)) {
        // 支付宝
        window.location.href = setting.aliUrl; 
    } else if(navigator.userAgent.match(/MicroMessenger\//i)) {
        // 微信
        document.getElementById("wechat-url").src = setting.qrcodeApi + urlEncode(setting.wechatUrl) + "&bgcolor=54bc6e";
        document.getElementById("code-wechat").style.display = "block";
    } else if(navigator.userAgent.match(/QQ\//i)) {
        // QQ
        document.getElementById("qq-url").src = setting.qrcodeApi + urlEncode(setting.qqUrl) + "&bgcolor=54b4ef";
        document.getElementById("code-qq").style.display = "block";
    } else {
        // 其它，显示“扫码”
        document.getElementById("page-url").src = setting.qrcodeApi + urlEncode(window.location.href) + "&bgcolor=5c92ef";
        document.getElementById("code-all").style.display = "block";
    }
    
    /*****************************************
     * url编码函数
     * 小白谨慎修改无标注内容
     * UTF-8编码
     ****************************************/
    function urlEncode(String) {
        return encodeURIComponent(String).replace(/'/g,"%27").replace(/"/g,"%22");    
    }
    </script>

</body>
</html>
